class VenueListResponse {
    List<VenueListBean> data;
    int code;
    String msg;

    VenueListResponse({this.data, this.code, this.msg});

    factory VenueListResponse.fromJson(Map<String, dynamic> json) {
        return VenueListResponse(
            data: json['data'] != null ? (json['data'] as List).map((i) => VenueListBean.fromJson(i)).toList() : null,
            code: json['code'], 
            msg: json['msg'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['code'] = this.code;
        data['msg'] = this.msg;
        if (this.data != null) {
            data['data'] = this.data.map((v) => v.toJson()).toList();
        }
        return data;
    }
}

class VenueListBean {
    String address;
    String area;
    String city;
    String distance;
    String fullAddress;
    String id;
    String image;
    String imageTime;
    String imageUrl;
    String latitude;
    String longitude;
    String name;
    String province;
    String township;
    List<String> venueCategory;
    String venueCid;

    VenueListBean({this.address, this.area, this.city, this.distance, this.fullAddress, this.id, this.image, this.imageTime, this.imageUrl, this.latitude, this.longitude, this.name, this.province, this.township, this.venueCategory, this.venueCid});

    factory VenueListBean.fromJson(Map<String, dynamic> json) {
        return VenueListBean(
            address: json['Address'],
            area: json['Area'],
            city: json['City'],
            distance: json['Distance'],
            fullAddress: json['FullAddress'],
            id: json['Id'],
            image: json['Image'],
            imageTime: json['ImageTime'],
            imageUrl: json['ImageUrl'],
            latitude: json['Latitude'],
            longitude: json['Longitude'],
            name: json['Name'],
            province: json['Province'],
            township: json['Township'],
            venueCategory: json['VenueCategory'] != null ? new List<String>.from(json['VenueCategory']) : null,
            venueCid: json['VenueCid'],
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['Address'] = this.address;
        data['Area'] = this.area;
        data['City'] = this.city;
        data['Distance'] = this.distance;
        data['FullAddress'] = this.fullAddress;
        data['Id'] = this.id;
        data['Image'] = this.image;
        data['ImageTime'] = this.imageTime;
        data['ImageUrl'] = this.imageUrl;
        data['Latitude'] = this.latitude;
        data['Longitude'] = this.longitude;
        data['Name'] = this.name;
        data['Province'] = this.province;
        data['Township'] = this.township;
        data['VenueCid'] = this.venueCid;
        if (this.venueCategory != null) {
            data['VenueCategory'] = this.venueCategory;
        }
        return data;
    }
}